/*
 * @Date: 2023-03-09 16:43:21
 * @LastEditors: Zireael 1193875164@qq.com
 * @LastEditTime: 2023-03-09 16:46:58
 * @FilePath: \A19\backend\src\shared\protocols\QuestionsSys\PtlSaveTest.ts
 */
import { ObjectId } from "mongodb";
import { BaseRequest, BaseResponse, BaseConf } from "../base";

export interface ReqSaveTest extends BaseRequest {
    examOrHomework:'exam' | 'homework',
    testId:ObjectId,
    name:string,
    startTime:Date,
    endTime:Date,
    questions:Array<ObjectId>
}

export interface ResSaveTest extends BaseResponse {
    
}

export const conf: BaseConf = {
    needRole: 'teacher',
    needLogin: true
}